package com.wwwarehouse.contract.orders;


import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;

/**
 * place orders bean
 * Created by ShineF on 2017/10/18 0018.
 */

public class PlaceOrdersBrowseGoodsBean implements Parcelable {

    private ArrayList<DataBean> list;

    public ArrayList<DataBean> getList() {
        return list;
    }

    public void setList(ArrayList<DataBean> list) {
        this.list = list;
    }

    public  class DataBean implements Parcelable {
        private String shopName;
        private String goodsName;
        private String price;
        private String goodsSaleNum;

        public DataBean(String shopName, String goodsName, String price, String goodsSaleNum) {
            this.shopName = shopName;
            this.goodsName = goodsName;
            this.price = price;
            this.goodsSaleNum = goodsSaleNum;
        }

        public String getShopName() {
            return shopName;
        }

        public void setShopName(String shopName) {
            this.shopName = shopName;
        }

        public String getGoodsName() {
            return goodsName;
        }

        public void setGoodsName(String goodsName) {
            this.goodsName = goodsName;
        }

        public String getPrice() {
            return price;
        }

        public void setPrice(String price) {
            this.price = price;
        }

        public String getGoodsSaleNum() {
            return goodsSaleNum;
        }

        public void setGoodsSaleNum(String goodsSaleNum) {
            this.goodsSaleNum = goodsSaleNum;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.shopName);
            dest.writeString(this.goodsName);
            dest.writeString(this.price);
            dest.writeString(this.goodsSaleNum);
        }

        protected DataBean(Parcel in) {
            this.shopName = in.readString();
            this.goodsName = in.readString();
            this.price = in.readString();
            this.goodsSaleNum = in.readString();
        }

        public final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel source) {
                return new DataBean(source);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeList(this.list);
    }

    public PlaceOrdersBrowseGoodsBean() {
    }

    protected PlaceOrdersBrowseGoodsBean(Parcel in) {
        this.list = new ArrayList<DataBean>();
        in.readList(this.list, DataBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<PlaceOrdersBrowseGoodsBean> CREATOR = new Parcelable.Creator<PlaceOrdersBrowseGoodsBean>() {
        @Override
        public PlaceOrdersBrowseGoodsBean createFromParcel(Parcel source) {
            return new PlaceOrdersBrowseGoodsBean(source);
        }

        @Override
        public PlaceOrdersBrowseGoodsBean[] newArray(int size) {
            return new PlaceOrdersBrowseGoodsBean[size];
        }
    };
}
